package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: Configuration
 * @Description: 对应sqlMapConfig.xml（包含mapper.xml的全路径）
 * @Author: qiaojiacheng
 * @Date: 2021/7/22 11:55 上午
 */
public class Configuration {
    /**
     * 数据源
     */
    private DataSource dataSource;
    /**
     * map集合：key=statementId，value=MapperStatement
     */
    private Map<String, MapperStatement> mapperStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
